package com.wormhole.wormholemanagement.service.impl;

import com.wormhole.wormholemanagement.entity.Position;
import com.wormhole.wormholemanagement.repository.PositionRepository;
import com.wormhole.wormholemanagement.service.PositionService;
import jakarta.transaction.Transactional;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Transactional
@RequiredArgsConstructor
public class PositionServiceImpl implements PositionService {

    private final PositionRepository positionRepository;

    @Override
    public List<Position> getAllPositions() {
        return positionRepository.findAll();
    }
}